:root {
    --primary: #f39c12;
    --dark-bg: #121212;
    --content-bg: #1a1a1a;
    --text-light: #f5f5f5;
    --text-gray: #bdbdbd;
    --accent: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
}

/* 电影顶部区域 */
.movie-header {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.movie-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 10%, transparent 100%),
    var(--backdrop-url) center/cover no-repeat;
    filter: brightness(0.8);
}

.movie-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 50px;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.95) 30%, transparent 100%);
}

.movie-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    color: var(--primary);
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-rating {
    color: #f1c40f;
    font-weight: bold;
}

.meta-value {
    font-weight: 500;
}

.meta-icon {
    color: var(--primary);
}

.movie-description {
    max-width: 800px;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.action-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.play-button {
    background-color: var(--primary);
    color: black;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.play-button:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.6);
}

.secondary-button {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 内容区块 */
.section {
    padding: 15px 50px;
    background-color: var(--content-bg);
}

.section-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.view-all {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.view-all:hover {
    color: var(--primary);
}

/* 演职人员区域 */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.cast-member {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cast-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.cast-img {
    height: 280px;
    width: 100%;
    object-fit: cover;
}

.cast-info {
    padding: 15px;
}

.cast-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cast-role {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* 剧照区域 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    /*height: 200px;*/
    cursor: pointer;
    transition: all 0.3s ease;
    padding-top: 56.25%; /* 关键修改 */
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* 推荐电影区域 */
.recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.rec-movie {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.rec-movie:hover {
    transform: translateY(-5px);
}

.rec-poster {
    height: 350px;
    width: 100%;
    object-fit: cover;
}

.rec-info {
    padding: 15px;
}

.rec-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.rec-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .movie-header {
        height: 60vh;
    }

    .movie-content {
        padding: 30px;
    }

    .cast-grid, .gallery-grid, .recommendations {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .movie-header {
        height: 80vh;
    }

    .movie-title {
        font-size: 2.2rem;
    }

    .movie-meta {
        gap: 15px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .section {
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    .movie-header {
        height: 85vh;
    }

    .movie-content {
        padding: 20px;
    }

    .movie-title {
        font-size: 1.8rem;
    }

    .movie-description {
        font-size: 1rem;
    }

    .section {
        padding: 30px 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}